package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPjProcessRecordMapper;
import com.ruoyi.system.domain.SysPjProcessRecord;
import com.ruoyi.system.service.ISysPjProcessRecordService;

/**
 * 磐基运维进度Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class SysPjProcessRecordServiceImpl implements ISysPjProcessRecordService 
{
    @Autowired
    private SysPjProcessRecordMapper sysPjProcessRecordMapper;

    /**
     * 查询磐基运维进度
     * 
     * @param id 磐基运维进度主键
     * @return 磐基运维进度
     */
    @Override
    public SysPjProcessRecord selectSysPjProcessRecordById(Long id)
    {
        return sysPjProcessRecordMapper.selectSysPjProcessRecordById(id);
    }

    /**
     * 查询磐基运维进度列表
     * 
     * @param sysPjProcessRecord 磐基运维进度
     * @return 磐基运维进度
     */
    @Override
    public List<SysPjProcessRecord> selectSysPjProcessRecordList(SysPjProcessRecord sysPjProcessRecord)
    {
        return sysPjProcessRecordMapper.selectSysPjProcessRecordList(sysPjProcessRecord);
    }

    /**
     * 新增磐基运维进度
     * 
     * @param sysPjProcessRecord 磐基运维进度
     * @return 结果
     */
    @Override
    public int insertSysPjProcessRecord(SysPjProcessRecord sysPjProcessRecord)
    {
        sysPjProcessRecord.setCreateTime(DateUtils.getNowDate());
        return sysPjProcessRecordMapper.insertSysPjProcessRecord(sysPjProcessRecord);
    }

    /**
     * 修改磐基运维进度
     * 
     * @param sysPjProcessRecord 磐基运维进度
     * @return 结果
     */
    @Override
    public int updateSysPjProcessRecord(SysPjProcessRecord sysPjProcessRecord)
    {
        sysPjProcessRecord.setUpdateTime(DateUtils.getNowDate());
        return sysPjProcessRecordMapper.updateSysPjProcessRecord(sysPjProcessRecord);
    }

    /**
     * 批量删除磐基运维进度
     * 
     * @param ids 需要删除的磐基运维进度主键
     * @return 结果
     */
    @Override
    public int deleteSysPjProcessRecordByIds(Long[] ids)
    {
        return sysPjProcessRecordMapper.deleteSysPjProcessRecordByIds(ids);
    }

    /**
     * 删除磐基运维进度信息
     * 
     * @param id 磐基运维进度主键
     * @return 结果
     */
    @Override
    public int deleteSysPjProcessRecordById(Long id)
    {
        return sysPjProcessRecordMapper.deleteSysPjProcessRecordById(id);
    }
}
